# Makefile for sample java files
#
# If not installed in ORACLE_HOME, set ORACLE_HOME to installation root
#
# ======================================================================

.SUFFIXES : .java .class

CLASSES = JAXPExamples.class oraContentHandler.class

# Change it to the appropriate separator based on the OS.
PATHSEP = :

# Assumes that the CLASSPATH contains JDK classes.
MAKE_CLASSPATH = .$(PATHSEP)../common$(PATHSEP)$(ORACLE_HOME)/lib/xmlparserv2.jar$(PATHSEP)$(ORACLE_HOME)/jlib/orai18n.jar

.java.class:
	javac -classpath "$(MAKE_CLASSPATH)" $<

demo:   $(CLASSES)
	@java -classpath "$(MAKE_CLASSPATH)" JAXPExamples > JAXPExamples.out; 

clean:
	rm -f *.class
	rm -f *.out
